<?php
class ModulePrivilegeLogVo extends SzAbstractMySqlVo
{

    private $logId;
    private $actorId;
    private $privilegeId;
    private $detail;
    private $created;

    /**
     * Initialize ModulePrivilegeLogVo.
     *
     * @param $logId
     * @param $actorId
     * @param $privilegeId
     * @param $detail
     * @param $created
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ModulePrivilegeLogVo
     */
    public function __construct($logId, $actorId, $privilegeId, $detail, $created, $isInsert = false) {
        $this->logId = $logId;
        $this->actorId = $actorId;
        $this->privilegeId = $privilegeId;
        $this->detail = $detail;
        $this->created = $created;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ModulePrivilegeLogVo';
        $this->ormName = 'ModulePrivilegeLog';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'logId' => $this->getLogId(),
            'actorId' => $this->getActorId(),
            'privilegeId' => $this->getPrivilegeId(),
            'detail' => $this->getDetail(),
            'created' => $this->getCreated(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'logId' => $this->getLogId(),
            'actorId' => $this->getActorId(),
            'privilegeId' => $this->getPrivilegeId(),
            'detail' => $this->getDetail(),
            'created' => $this->getCreated(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getLogId(),
            $this->getActorId(),
            $this->getPrivilegeId(),
            $this->getDetail(),
            $this->getCreated(),
        );
    }

    public function getLogId()
    {
        return $this->logId;
    }

    public function setLogId($val)
    {
        $this->saveColumnStatus(0, $this->logId);
        $this->logId = $val;
    }

    public function getActorId()
    {
        return $this->actorId;
    }

    public function setActorId($val)
    {
        $this->saveColumnStatus(1, $this->actorId);
        $this->actorId = $val;
    }

    public function getPrivilegeId()
    {
        return $this->privilegeId;
    }

    public function setPrivilegeId($val)
    {
        $this->saveColumnStatus(2, $this->privilegeId);
        $this->privilegeId = $val;
    }

    public function getDetail()
    {
        return $this->detail;
    }

    public function setDetail($val)
    {
        $this->saveColumnStatus(3, $this->detail);
        $this->detail = $val;
    }

    public function getCreated()
    {
        return $this->created;
    }

    public function setCreated($val)
    {
        $this->saveColumnStatus(4, $this->created);
        $this->created = $val;
    }

}